<template>
    <el-main>
        <el-main class="ep-body">
            <!--<epl-top-bar showCompany companyType="COMPANY_AAB000_EXACT">-->
                <!--<ep-button size="small" name="打印"></ep-button>-->
                <!--<ep-button size="small" name="刷新"></ep-button>-->
            <!--</epl-top-bar>-->
            <!--<epl-CpInsureRegPanel mt="10" p="H" detail-path="/business/d100insiup/d71query/CpQueryAll"></epl-CpInsureRegPanel>-->

            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <el-button size="small" @click="clear" >刷新</el-button>
            </epl-top-bar>
             <epl-userMessage dataType="company" idCount="2" :panel="panel">
                  <epl-tableList :tableHeader="['险种','补退费金额','补退费月数','调整前缴费基数','调整后缴费基数']" :rowName="['aae140','aae180','status','month','sum']" type="prop">
             <template slot-scope="scope">
                        <epl-TableListColumn type="hui">{{scope.row.aae140}}</epl-TableListColumn>
                        <epl-TableListColumn type="red">{{scope.row.aae180}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">{{scope.row.status}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">{{scope.row.month}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">￥{{scope.row.sum}}</epl-TableListColumn>
                    </template>
                </epl-tableList>
            </epl-userMessage>
             <el-card class="ep-card">
                 <ep-title>请输入调整信息</ep-title>                  
                        <el-form :model="form" :rules="rules"  ref="form">
                            <el-row>
                                <ep-input colspan="8" label="调整类型" name="aaa115" :property="form.aaa115"
                                          placeholder="请输入调整类型" p="H"
                                          :datas="{formData:form}"></ep-input>
                              <ep-select colspan="8" label="险种" name="aae140" :property="form.aae140"
                                          placeholder="请选择险种" p="R" SelectFilterData=" (aaa102='110')"
                                          :datas="{formData:form}" codetype="AAE140"></ep-select>
                                <ep-date colspan="8" label="调整年月" name="aae159" :property="form.aae159"
                                          placeholder="请选择调整年月" p="H" :datas="{formData:form}"></ep-date>
                                
                                <ep-input colspan="8" label="个人调整金额" name="aae009" :property="form.aae009"
                                          placeholder="请输入个人调整金额" p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>                           
                            <el-row :gutter="10">
                        <ep-textarea :rows="3" colspan="24" label="备注" name="bae582" :property="form.bae582"
                            p="E" :datas="{formData:form}"></ep-textarea>
                    </el-row>
                        </el-form>

                    <ep-title>历史调整信息</ep-title>
                        <el-row>
                            <ep-table :data="tableData" ref="tableData"  border style="width: 100%;" rowDbClick :titleFilter="demo">
                                <!--<el-table-column type="selection" width="55"></el-table-column>-->
                                <ep-table-column editor="text" sortable name="aab001" header="单位编码" width="140"></ep-table-column>
                                <ep-table-column editor="text" sortable name="aab069" header="单位名称" width="140"></ep-table-column>
                                <ep-table-column editor="text" sortable name="bac049" header="费款所属期"  width="140"></ep-table-column>
                                <ep-table-column editor="select" sortable name="aab033" header="险种"  codetype="AAB033" width="140"></ep-table-column>
                                <ep-table-column editor="text" sortable name="aae082" header="个人调整金额"  width="140"></ep-table-column>
                                <ep-table-column editor="text" sortable name="bae584" header="调整原因"  width="140"></ep-table-column>
                                 <ep-table-column editor="text" sortable name="aae011" header="操作员" width="140" hidden></ep-table-column>
                                  <ep-table-column editor="text" sortable name="aae002" header="操作日期" width="140" hidden></ep-table-column>
                            </ep-table>
                        </el-row>
                         <div style="margin: 15px 0;"></div>
                        <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{formData: form,tableData:tableData,panel:panel}" name="保存"></ep-saveButton>
                    </el-row> 
                    </el-card>

        </el-main>
    </el-main>
</template>



<script src="../js/CpFundAdjustJS.js"></script>
